package com.cc.visitor.service;

import com.cc.visitor.dao.CallProcedureMapper;
import com.cc.visitor.entity.Visit;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * @author chanchaw
 * @create 2024-11-20 10:31
 */
@Service
public class CallProcedureServiceImpl implements CallProcedureService{
    @Autowired
    private CallProcedureMapper dao;
    @Override
    public List<Map<String, Object>> getVisitorTop3(String openId) {
        return dao.getVisitorTop3(openId);
    }
    @Override
    public List<Map<String,Object>> getUnFinishedVisit(String unionId){
        return dao.getUnFinishedVisit(unionId);
    }
    @Override
    public List<Visit> getVisitorDayRecords(String unionId,String targetDay,Integer finished){
        return dao.getVisitorDayRecords(unionId, targetDay, finished);
    }
    @Override
    public List<Visit> getVisitorDayRecords8VisitorName(String visitorName, String targetDay, Integer finished){
        return dao.getVisitorDayRecords8VisitorName(visitorName, targetDay, finished);
    }
    @Override
    public List<Map<String,Object>> getRejectVisit(LocalDate sdate, LocalDate edate){
        return dao.getRejectVisit(sdate, edate);
    }
}
